﻿<%@ Page Language="C#" EnableEventValidation="false"  MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="Logon.aspx.cs" Theme="Default" Inherits="webapp4U.UI.Logon" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<uc:Title runat="server" ID="Title" />

   <!-- Begin Xy ly nut enter khi logon -->
        <script>
        function clickButton(e, buttonid)
        { 
            var bt = document.getElementById(buttonid); 
            if (typeof bt == 'object')
            { 
                if(navigator.appName.indexOf("Netscape")>(-1))
                      { 
                      if (e.keyCode == 13)
                      { 
                            bt.click(); 
                            return false; 
                      } 
                } 
                if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
                { 
                      if (event.keyCode == 13)
                      { 
                            bt.click(); 
                            return false; 
                      } 
                } 
             } 
        } 
        </script>
    
<asp:Button runat="server" Text="" EnableTheming="false" Visible="false" CssClass="Hidden" ID="btPro" Height="0px" OnClick="btLogon_Click" UseSubmitBehavior="false"/>
<!-- End Xy ly nut enter khi logon -->


<table border="0" align="center" width="500px">
    <tr>
        <td>
            <asp:Panel runat="server" ID="PanelLogon" DefaultButton="btSave">
                <table border="0" align="center">
                    <tr>
                        <td align="center" style="padding-top: 10pt;">
                            <asp:UpdatePanel ID="UpdatePanelUser" runat="server"  UpdateMode="Conditional">
                                <contenttemplate>
                            <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="red"></asp:Label>
                            <asp:Panel runat="server" ID="PanelUser">
                                <br />
                                <fieldset>
                                    <legend style="text-transform: uppercase; color: #19588b"><b><%=ResourceManager.GetString("MemberLogon") %></b></legend>
                                    <div style="padding-top: 10pt;">
                                        
                                            <table align="center" cellpadding="5" cellspacing="0" border="0">
                                                <tr id="Tr4" visible="true" runat="server">
                                                    <td align="left" class="text">
                                                        <b>Username:</b></td>
                                                    <td>
                                                        <asp:TextBox ID="txtEmail" MaxLength="200" runat="server" Width="200"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr id="Tr1" runat="server">
                                                    <td align="left" class="text">
                                                        <b>Password:</b></td>
                                                    <td>
                                                        <asp:TextBox ID="txtPassword" TextMode="Password" MaxLength="200" runat="server"
                                                            Width="200"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" colspan="2">
                                                        <%--<a href="<%=Globals.ApplicationPath %>Membership/CreateUser.aspx"><b><%=ResourceManager.GetString("Logon_Dangky")%>!</b></a>&nbsp;--%>
                                                        <asp:Button runat="server" ID="btSave" Text=" Logon " OnClick="btLogon_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                       
                                    </div>
                                </fieldset>
                            </asp:Panel>
                            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />
                             </contenttemplate>
                               <triggers>
                                     <asp:AsyncPostBackTrigger ControlID="btPro" EventName="Click"></asp:AsyncPostBackTrigger>
                              </triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
                </asp:Panel>    
        </td>
    </tr>
</table>
    
    
</asp:Content>